package com.stars.entity.mygenerate;

/**
 * Created by luodajie on 2019/1/7.
 */
public enum MysqlFieldType {
    VARCHAR("string", "varchar"),
    INT("int", "int"),
    DATE("date", "date"),
    DATETIME("datetime", "datetime"),
    TEXT("text", "text"),
    BIGINT("long", "bigint"),
    DOUBLE("double", "double");

    private String name;
    private String type;

    private MysqlFieldType(String name, String type) {
        this.name = name;
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
